Component({
    data: {
        current:'homePage'
    },

    methods:{
        handleChange({detail}){
            wx.switchTab({
              url: '/pages/'+detail.key+'/index',
            })
        },
    }

});